package com.tomtop.example_redis;

import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.index.Indexed;

import com.tomtop.core.model.SysModel;

@RedisHash
public class User extends SysModel{
		private static final long serialVersionUID = 1L;
		@Id private Integer userid;
		@Indexed private String username;
		public User() {
		}
		public User(int userid,String username) {
			this.userid=userid;
			this.username=username;
		}
		public int getUserid() {
			return userid;
		}
		public void setUserid(int userid) {
			this.userid = userid;
		}
		public String getUsername() {
			return username;
		}
		public void setUsername(String username) {
			this.username = username;
		}
	}